package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.SalesUser;
import com.ecoolex.hotel.saas.entity.SalesUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface SalesUserMapper {
    long countByExample(SalesUserExample example);

    int deleteByExample(SalesUserExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(SalesUser record);

    int insertSelective(@Param("record") SalesUser record, @Param("selective") SalesUser.Column ... selective);

    SalesUser selectOneByExample(SalesUserExample example);

    List<SalesUser> selectByExample(SalesUserExample example);

    SalesUser selectByPrimaryKey(Integer id);

    SalesUser selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") SalesUser record, @Param("example") SalesUserExample example, @Param("selective") SalesUser.Column ... selective);

    int updateByExample(@Param("record") SalesUser record, @Param("example") SalesUserExample example);

    int updateByPrimaryKeySelective(@Param("record") SalesUser record, @Param("selective") SalesUser.Column ... selective);

    int updateByPrimaryKey(SalesUser record);

    int batchInsert(@Param("list") List<SalesUser> list);

    int batchInsertSelective(@Param("list") List<SalesUser> list, @Param("selective") SalesUser.Column ... selective);

    int logicalDeleteByExample(@Param("example") SalesUserExample example);

    int logicalDeleteByPrimaryKey(Integer id);
}